package com.yantong.mapper;

import com.yantong.pojo.MemberProductAuthority;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

public interface MemberProductAuthorityMapper {
    int deleteByPrimaryKey(Long id);

    int insert(MemberProductAuthority record);

    int insertSelective(MemberProductAuthority record);

    MemberProductAuthority selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(MemberProductAuthority record);

    int updateByPrimaryKey(MemberProductAuthority record);

    List<MemberProductAuthority> listByMid(@Param("mid") Long mid, RowBounds rowBounds);

    Integer countByMid(@Param("mid") Long mid);

    MemberProductAuthority getByProductAuthorityIdAndMid(@Param("productAuthorityId") Long productAuthorityId, @Param("mid") Long mid);


    List<MemberProductAuthority> selectMemberProductAuthorityListByProductAuthortyId(@Param("productAuthorityId") Long productAuthorityId);


}